<template>
  <view :class="`page-title ${icon || 'title-icon'}`">
    <text class="text">{{ title || "标题" }}</text>
  </view>
</template>

<script setup>
const { title, icon } = defineProps({
  title: String,
  icon: String,
})

</script>

<style lang="less" scoped>
@import url("./index.less");
</style>
